package com.wmm.service;

import com.wmm.bean.User;
import com.wmm.dao.UserDao;
import com.wmm.factory.DaoFactory;


public class UserService {

    private UserDao userDao;
    DaoFactory daoFactory = new DaoFactory();

    public UserService() {
        this.userDao = daoFactory.getUserDao();
    }
    /**
     * 自定义成员方法实现根据参数指定的User对象来调用DAO层实现登录功能
     * @param user
     * @return
     */
    public User userLoginService(User user){
        return userDao.userLogin(user);
    }
}
